<?php

/* @var $this \yii\web\View */
/* @var $content string */
use yii\helpers\Html;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use app\assets\AppAsset;

AppAsset::register($this);
$thisUrl = Yii::$app->request->getPathInfo();
$module = Yii::$app->controller->module->id;

?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
    <meta charset="<?= Yii::$app->charset ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <?= Html::csrfMetaTags() ?>
    <title><?= Html::encode($this->title) ?></title>
    <?php $this->head() ?>
</head>
<body>
<?php $this->beginBody() ?>

<div class="wrap">

    <!-- Left -->
    <div class="icon-bar">
      <div class="menu menu_small">
        <ul class="sidebar">
          <li class="nav__item">
            <a href="/search" class="nav__item-link">
              <i class="fa fa-search nav__item-icon"></i>
            </a>
          </li>
          <li class="nav__item">
            <a href="/clinical" class="nav__item-link">
              <i class="fa fa-file-excel-o nav__item-icon"></i>
            </a>
          </li>
<!--          <li class="nav__item">-->
<!--            <a href="/sample" class="nav__item-link">-->
<!--              <i class="fa fa-database nav__item-icon"></i>-->
<!--            </a>-->
<!--          </li>-->
          <li class="nav__item">
            <a href="/setting" class="nav__item-link">
              <i class="fa fa-cog nav__item-icon"></i>
            </a>
          </li>
        </ul>
      </div>
    </div>

    <!-- Right -->
    <div class="main">
      <div class="site-index">
        <?= $module != 'basic' ? $this->render('@app/modules/'.$module.'/views/layouts/main.php') : '' ?>
      </div>

      <div class="fill-info">
          <?= $content ?>
      </div>
      <input type="hidden" id="thisUrl" value="<?= $thisUrl ?>">
    </div>
</div>

<?php $this->endBody() ?>
</body>
</html>
<?php $this->endPage() ?>
